﻿@model RonYee.Models.MvcPage
@{
    ViewBag.Title = "Index";
    Layout = null;
}

<div class="box_padding" id="content">
    <h3><i class="ui-icons"></i>检索图书</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg">
      <div class="box_padding">
       <div class="border_line">
          @using (Html.BeginForm("Search", "InStore", FormMethod.Post))
            {
                <table width="100%" border="0" id="MyTable" cellpadding="0" cellspacing="0">
                <tbody>
                <tr>
                    <td  class="tdName">ISBN</td>
                    <td  class="tdData">
                        <input type="text" id="s_isbn" name="s_isbn"/>
                    </td>
                    <td class="tdName">书名</td>
                    <td class="tdData">
                        <input type="text" id="s_name" name="s_name"/>
                    </td>
                </tr>
                <tr>
                    <td class="tdName">库存位置</td>
                    <td class="tdData">
                        <input type="text" id="s_area" name="s_area"/>
                    </td>
                    <td class="tdName">图书持有者</td>
                    <td class="tdData">
                        <input type="text" id="s_hold" name="s_hold" />
                    </td>
                </tr>
                <tr>
                    <td class="tdData"></td>
                    <td class="tdData"></td>
                    <td class="tdData"></td>
                    <td class="tdData">
                        <input type="submit" value="查询》" class="Button1 ui-icons" />
                    </td>
                </tr>  
                </tbody>
                </table>
                    
            }
        
       </div>
      </div>
    </div>
    <div class="box_down ui-icons"></div>
     @using (Html.BeginForm("PageIndex", "InStore", FormMethod.Post))
 { 
    <h3><i class="ui-icons"></i>库存图书列表</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg">
      <div class="box_padding">
       <div class="border_line">
          <p>
             <a href="@Url.Action("Create")"><input class="Button1 ui-icons" type="button" value="添加入库" name="Create" /></a>
          </p>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tbody>
                <tr>
                 <th class="tdName">
                    选择
                </th>
                <th class="tdName">
                    ISBN
                </th>
                <th class="tdName">
                    书名
                </th>
                <th class="tdName">
                    图书持有者
                </th>
                <th class="tdName">
                    库存位置1
                </th>
                <th class="tdName">
                    库存位置2
                </th>
                <th class="tdName">
                    编辑
                </th>
                <th class="tdName">
                    详细
                </th>
                <th class="tdName">
                    删除
                </th>
               </tr>

           @foreach (RonYee.Models.InStore item in Model.InStoreList)
           {
                <tr>
                    <td class="tdData">
                       <input type="checkbox" id="CheckId" />
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.ISBN)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.BookName)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.HoldUser)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.StorageArea1)
                    </td>
                    <td class="tdData">
                        @Html.DisplayFor(modelItem => item.StorageArea2)
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("编辑", "Edit", new { id = item.InStoreId }) 
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("详细", "Details", new { id = item.InStoreId }) 
                    </td>
                    <td class="tdData">
                        @Html.ActionLink("删除", "Delete", new { id = item.InStoreId })
                    </td>
                </tr>
           }
              </tbody>
            </table> 
            <center>@Html.Partial("~/Views/Shared/_PageIndex.cshtml", Model)</center> 
       </div>
      </div>
    </div>
    <div class="box_down ui-icons"></div>
 }
</div>
<div class="line_top"></div>